package com.shanghaionstar.utils;

import com.onstar.cn.map.common.PoiItemInfo;

/**
 * 
 * @ClassName: JoinMeConstants
 * @Description: Join Me 模块字符常量
 * @author Wanjin Chen
 * @date 2013-12-27 下午4:21:14
 */
public class JoinMeConstants {
	public enum OperationType {
		CHECKUNIQUE("CHECKUNIQUE"), // 验证唯一性
		INVOKEREGCODE("INVOKEREGCODE"), // 获取验证码
		CHECKREGCODE("CHECKREGCODE"), // 验证验证码
		REGONSTARUSER("REGONSTARUSER"), // 验证验证码
		GETUSERINFO("GETUSERINFO");// 获取用户信息

		private String value;
		OperationType(String value) {
			this.value = value;
		}

		public String getOperationType() {
			return String.valueOf(this.value);
		}

	}

	// 登录
	public static final int SUCCESS_CODE = 200;
	public static final int FAILURE = 0x00000;
	public static final int SUCCESS = 0x00001;
	public static final int UPGRADE = 0x00002;
	public static final int UPGRADE_PROGRESS = 0x00003;
	public static final int UPGRADE_CANCEL = 0x00004;
	public static final int ERROR = 0x00005;
	public static final int RESENDREGCODE = 0x00007;
	public static final int REGISTER_CODE_ERROR = 0x00008;
	public static final int POST_ERROR = 0x00009;
	public static final int REQUEST_ERROR = 0x00010;
	public static final int UDPATE_UI = 0x00011;

	
	//图片验证码
	public static final int CAPTCHA_SUCCESS = 0x00012;
	public static final int GETCAPTCHA_IMAGE = 0x00013;
	public static final int CAPTCHA_ERROR = 0x00014;
	public static final int CHECK_SUCCESS = 0x00015;//验证成功
	public static final int CHECK_ERROR = 0x00016;//验证失败
	
	/**
	 * 升级为车主的情况下检查是否需要显示验证码
	 */
	public static final int UPGRADE_CHECKNEED_CAPTCHA = 0x00017;
	public static final int UPGRADE_CHECK_SUCCESS = 0x00018;
	
	
	/**
	 * 标识当前登录身份不是车主，则都跳回主页
	 */
	public static final int RESULT_OK = -101;

	/**
	 * 潜客
	 */
	public static final String VISITOR = "visitor";
	/**
	 * 代理
	 */
	public static final String PROXY = "proxy";
	/**
	 * 司机
	 */
	public static final String DRIVER = "driver";
	/**
	 * 车主
	 */
	public static final String OWNER = "owner";
	/**
	 * 没有登录
	 */
	public static final String NOLOGIN = "";

	/**
	 * 保存idpid
	 */
	public static String LOGIN_IDPID = "";
	
	public static String DEVICE_OS  = "Android";
	public final static String BANNER_IMGTYPE  = "ANDROID";
	public static String DEVICETYPE  = "10";
	// 保存吐槽类别
	public static String TRASG_TALK = "";
	/**
	 * 用户名
	 */
	public static final String USER_NAME = "userName";
	/**
	 * 用户密码
	 */
	public static final String USER_PASS = "userPass";

	/**
	 * 本地文件名称
	 */
	public static final String SHARE_NAME = "joinme";

	/**
	 * 潜客登录记录List
	 */
	public static final String VISITOR_LIST = "visitor_list";

	/**
	 * 播放提示声音
	 */
	public static final String IS_PALY_SOUND = "isPlaySound";
	/**
	 * 震动
	 */
	public static final String IS_VIBARTOR = "isVibartor";
	/**
	 * 记录当前环境
	 */
	public static final String SIT_OR_UAT = "sit_or_uat";


	/**
	 * 是否从更多进入升级车主界面
	 */
	public static final String IS_MORE = "isMore";

	/**
	 * 更多界面TABId
	 */
	public static final int MORE_TAB_ID = -10000;

	/**
	 * 保存刚修改的手机号码
	 */
	public static String UPDATE_USER_PHONE = "";
	/**
	 * 保存刚修改的邮箱
	 */
	public static String UPDATE_USER_EMAIL = "";
	/**
	 * 首选经销商
	 */
	public static String PREFER_DEALER = "";
	/**
	 * 修改PerferDealer
	 */
	public static boolean UPDATE_PREFER_DEALER = false;

	public static boolean HOME_FAVORITE = false;

	public static boolean HOME_REPORT_BACK = false;
	public static boolean HOME_REPORT = false;
	public static boolean HOME_REPORT_UPDATE = false;
	public static boolean HOME_PAYME_REPORT = false;
	public static boolean HOME_FWJS = false;
	public static boolean UPGRADE_OWNER = false;
	public static boolean TRUE_STORY = false;

	/**
	 * 用户退出登录、切换账号时，需通过此变量控制地图POI图层
	 */
	public static boolean LOG_OUT = false;
	/**
	 * 是否更新Banner 数据
	 */
	public static boolean UPDATE_BANNER = true;
	/**
	 * 主页车门上锁，车辆位置标识
	 */
	public static boolean HOME_REMOTE_LOCATION = false;
	public static boolean HOME_VEHICLE_LOCATION = false;
	/**
	 * 自动发送到车辆(入口：微信)
	 */
	public static boolean AUTO_SENT_TO_TBT = false;

	public static String CARDNUMBER = "";

	/**
	 * 保存上次记录的VEHICLE数据
	 */
	public static String SAVE_VEHICLE = "";
	public static String SAVE_VEHICLE_NAME = "save_vehicle_status";
	public static String CURRENT_VEHICLE_VIN = "currentVehicleVin";

	public static int BANNER_ID = 0;
	public static int Fragment_BS = 0;

	public static PoiItemInfo aroundDealerPoiItemInfo;

	/**
	 * 记录上次的车辆位置
	 */
	public static double latitude = 0.0;
	public static double longituede = 0.0;

	/**
	 * 广播消息数量
	 */
	public static String broadcastCount = "";


	/**
	 * 忘记密码URL
	 */
	public static String reset_password_url = "";
	/**
	 * 预生产环境忘记密码 idt2
	 */
//	public static final String resetPassword_qa = "resetPassword_qa";
//	/**
//	 * 预生产环境忘记密码 idt1
//	 */
//	public static final String resetPassword_idt1 = "resetPassword_idt1";
//
//	public static final String resetPassword_idt4 = "resetPassword_idt4";
//
//	public static final String resetPassword_idt5 = "resetPassword_idt5";


//	/**
//	 * 预生产环境忘记密码 idt1
//	 */
//	public static final String resetPassword_pp2 = "resetPassword_pp2";
//	/**
//	 * 生产环境忘记密码
//	 */
//	public static final String resetPassword_product = "resetPassword_product";
//
//	/**
//	 * 预生产环境忘记密码 pp1
//	 */
//	public static final String resetPassword_pp1 = "http://pp1.onstar.com.cn/mweb/mweb-page/forgetpwd/index?from=android";
//	/**
//	 * 预生产环境忘记密码 vv1
//	 */
//	public static final String resetPassword_vv1 = "http://vv1.onstar.com.cn/mweb/mweb-page/forgetpwd/index?from=android";

	/*
	 * 是否有 wifi
	 */

	public static boolean IS_WIFI = false;

	/*
	 * over due user
	 */

	public static final int OVER_DUE_USE = 1001;

	public static String GEOFENCENAME = "";
	
	public static boolean Others_Activity = false;
}
